
    <!-- Page title -->
    <div id="pagetitle">
		我的桌面 客户管理
        <div id="titleedit"><a href="javascript:aa('#addu',1);"><img src="/img/add.png" alt="添加" width="16" height="16" >创建</a></div>
</div>
    <!-- End of Page title -->
    <!-- Page content -->
    <div id="page">
	  <p></p>
      
      <table width="60%" border="0" align="center" cellpadding="0" cellspacing="2" id="Result">
          <form action="<?=site_url('tlianmengs/editexchange');?>" method="post">
          <tr align="center">
            <td width="28%">编号</td>
            <td width="28%">实物名</td>
            <td width="21%">粉币</td>
            
          </tr>
          <?php
          foreach($page_list as $item):
		  ?>
          
          <tr align="center">
            <td><?=$item['id']?>
            <input name="id[]" type="hidden" id="id[]" value="<?=$item['id']?>" /></td>
            <td><input name="goods[]" type="text" id="goods[]" value="<?=$item['goods']?>" /></td>
            <td>
            <input name="coins[]" type="text" id="coins[]" value="<?=$item['coins']?>" /></td>
            
            <input type="hidden" name="verification" id="verification" value="<?=$verification?>" />
         
          </tr>
  		<?php
        	endforeach;
		?>
          <tr align="center">
            <td>&nbsp;</td>
            <td>
            <input type="hidden" name="verification" id="verification" value="<?=$verification?>" />
            <input type="submit" name="button" id="button" value="提交" /></td>
            <td><input type="reset" name="button2" id="button2" value="重置" /></td>
       
          </tr>
          </form>
      </table>
<div class="modal" id="addu">
      <h2>添加产品</h2>
      <form action="<?=site_url('/tlianmengs/exchange/add/')?>" method="post">
        <label class="required" for="p_name">实物名：</label>
      	  <input type="text" id="p_name" class="full"  value="" name="goods"/><br />
         <label class="required" for="p_price">价格：</label>
        <input type="text" id="p_price" class="full"  value="" name="coins"/><br />
       
        <br />
        <input type="submit" class="btn btn-green big" value="添加" /> &nbsp;&nbsp; 
        <span class="close"><input type="button" id="overlayClose" class="btn btn-green big" value="返回" /></span>
        
        <input type="hidden" name="verification" id="verification" value="<?=$verification?>" />
        <input type="hidden" id="admin_id" value="0" />
      </form>
      </div>
           <script>
	  function aa(nid,vas) {
		    
			$(nid).overlay().load();
		  	if(nid == '#eidtu')
			{
				$('#admin_id').val(vas);
			}
		  }
	 	$("#eidtu").overlay({
			  mask: {
				  color: '#ebecff', 
				  loadSpeed: 200, 
				  opacity: 0.9,
				  close:'#overlayClose'
				  },       
			closeOnClick: false,
			  });
		$("#addu").overlay({
			  mask: {
				  color: '#ebecff', 
				  loadSpeed: 200, 
				  opacity: 0.9,
				  close:'#overlayClose'
				  },       
			closeOnClick: false,
			  });
	  </script>
